/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cpal.entrenamiento.common.logger;

import org.apache.log4j.PatternLayout;

/**
 *
 * @author omar
 */
public class Log4JPatternLayout extends PatternLayout {

    private boolean printThrowable = false;

    public boolean isPrintThrowable() {
        return printThrowable;
    }

    public void setPrintThrowable(boolean printThrowable) {
        this.printThrowable = printThrowable;
    }

    @Override
    public boolean ignoresThrowable() {
        return isPrintThrowable();
    }
}
